#include <stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	for (int j = 1; j <= n; j++)
	{
		for (int i = 1; i <= j; i++)
		{
			printf("%d * %d = %d", i, j, i * j);
			printf("    ");
		}
		printf("\n");
	}
	return 0;
}